﻿using System;
using System.Windows;
using MahApps.Metro.Controls;

namespace Ags.MonsterTools
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : MetroWindow 
    {
        public MainWindow(MainWindowViewModel vm)
        {
            this.DataContext = vm;
            InitializeComponent();
        }

        private void MainWindow_OnStateChanged(object sender, EventArgs e)
        {
            if (this.WindowState == WindowState.Minimized)
            {
                this.Hide();
            }
        }
    }
}
